// IAppAidlInterface.aidl
package com.android.mainapp;

// Declare any non-default types here with import statements
// AIDL的本质是对Binder的运用，从而实现进程间通信
interface IAppAidlInterface {
    /**
     * Demonstrates some basic types that you can use as parameters
     * and return values in AIDL.
     * 默认的可用于进程间传参通信的函数 basicTypes,其参数是java的几种基础数据类型
     * 除此之外，AIDL还支持多种其他数据类型：byte、short、char、charSequence、 List、 Map等
     */
    void basicTypes(int anInt, long aLong, boolean aBoolean, float aFloat,double aDouble, String aString);
    void setStringData(String strData);
}